home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
kiss-0.11
/
kiss-0
/
kiss
/
src
/
doquit.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-23
|
411b
|
21 lines
#include "kiss.h"
int doquit (Stringstack s)
{
if (s.nstr > 2)
return (warning ("Bad commandline.\n"
"Usage: exit [exitstatus]\n"
"Where:\n"
" exitstatus: (optional) return value; "
"default: exit with result\n"
" of last child process\n"));
if (s.nstr > 1)
exit (atoi (s.str [1]));
else
{
exit (laststatus);
return (0); /* to satisfy return value */
}
}